package com.cdcas;

public class Emp implements  Cloneable{
    private String ename;
    private String job;
    public  Emp(String ename,String job) {
        this.ename = ename;
        this.job = job;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return "Emp-"  +  super.toString() +":姓名" + this.ename +"、职位:" + this.job;
    }
}
